package cn.hacynn.nd.pojo.entity;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.Date;

@TableName("orders")
@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
public class Orders {

    @TableField()
    private Integer id;

    @TableId
    private String orderNo;

    @TableField()
    private String goodsName;

    @TableField()
    private Integer num;

    @TableField()
    private Double total;

    @TableField( value = "create_time", fill = FieldFill.INSERT)
    private Date createTime;

    @TableField()
    private String payNo;

    @TableField()
    private Date payTime;

    @TableField()
    private Integer status;

    @TableField()
    private Long userId;

}
